/**
 * 
 */
package com.onlinemathuracrud.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * @author Amit Kashyap
 * 
 */
@Entity
@Table(name = "timing")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Timing implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2954404580202231710L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;

	@Column
	private String winterEveningTime;

	@Column
	private String winterMorningTime;

	@Column
	private String summerMorningTime;

	@Column
	private String summerEveningTime;

//	@OneToOne(fetch = FetchType.LAZY, mappedBy = "timing")
//	private Temple temple;

	public Timing() {
		super();
	}

	/**
	 * @param winterEveningTime
	 * @param winterMorningTime
	 * @param summerMorningTime
	 * @param summerEveningTime
	 */
	public Timing(String winterEveningTime, String winterMorningTime,
			String summerMorningTime, String summerEveningTime) {
		super();
		this.winterEveningTime = winterEveningTime;
		this.winterMorningTime = winterMorningTime;
		this.summerMorningTime = summerMorningTime;
		this.summerEveningTime = summerEveningTime;
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the winterEveningTime
	 */
	public String getWinterEveningTime() {
		return winterEveningTime;
	}

	/**
	 * @param winterEveningTime
	 *            the winterEveningTime to set
	 */
	public void setWinterEveningTime(String winterEveningTime) {
		this.winterEveningTime = winterEveningTime;
	}

	/**
	 * @return the winterMorningTime
	 */
	public String getWinterMorningTime() {
		return winterMorningTime;
	}

	/**
	 * @param winterMorningTime
	 *            the winterMorningTime to set
	 */
	public void setWinterMorningTime(String winterMorningTime) {
		this.winterMorningTime = winterMorningTime;
	}

	/**
	 * @return the summerMorningTime
	 */
	public String getSummerMorningTime() {
		return summerMorningTime;
	}

	/**
	 * @param summerMorningTime
	 *            the summerMorningTime to set
	 */
	public void setSummerMorningTime(String summerMorningTime) {
		this.summerMorningTime = summerMorningTime;
	}

	/**
	 * @return the summerEveningTime
	 */
	public String getSummerEveningTime() {
		return summerEveningTime;
	}

	/**
	 * @param summerEveningTime
	 *            the summerEveningTime to set
	 */
	public void setSummerEveningTime(String summerEveningTime) {
		this.summerEveningTime = summerEveningTime;
	}

//	/**
//	 * @return the temple
//	 */
//	public Temple getTemple() {
//		return temple;
//	}
//
//	/**
//	 * @param temple
//	 *            the temple to set
//	 */
//	public void setTemple(Temple temple) {
//		this.temple = temple;
//	}

}
